/*
 * @Author: 孙大大
 * @Date: 2022-04-13 18:45:04
 * @LastEditTime: 2022-04-13 18:45:05
 * @FilePath: \hmmm-xdy\src\store\getters.js
 */
const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  token: (state) => state.user.token,
  name: (state) => state.user.userInfo.username,
  companyName: (state) => state.user.userInfo.companyName,
  departmentName: (state) => state.user.userInfo.departmentName,
  userId: (state) => state.user.userInfo.name,
  staffPhoto: (state) => state.user.userInfo.staffPhoto,
  companyId: (state) => state.user.userInfo.companyId,
  routes: (state) => state.permission.routes, // 导出当前的路由
};
export default getters;
